package com.lagou.demo03.factory;

import com.lagou.demo03.dao.StudentQueryDao;
import com.lagou.demo03.dao.StudentQueryDaoImp;

public class StudentQueryDaoFactory {
    /**
     * 通过静态工厂方法模式来实现按StudentQueryDao实现类对象的创建并返回
     * @return
     */
    public static StudentQueryDao getStudentQueryDao(){
        return new StudentQueryDaoImp();
    }
}
